<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <style type="text/css">
      body {
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
        width: 980px;
      }
      @media print {
        .Noprint {
          display: none;
        }
      }
    </style>
  </head>
  <script type=text/javascript src="/js/webprint.js"></script>
  <script type=text/javascript src="/js/mergecells.js"></script>
  <body>
    <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="wb" width="0" height="0" class="Noprint">
    </object>
    <div>
      <input type=button class="Noprint" id="print" value="打印" onclick="prints();"> <input type=button class="Noprint" id="preview" value="打印预览" onclick="printpreview();">
    </div>
    </br>
    <div style="width: 650px;">
    <span style="font-size: 14px; font-family: 'Arial'; float: left;">{{.basedata.Version | html}}</span></br>
    <table id="tbl_title" border="0" cellspacing="0" cellpadding="0" style="font-size:100%">
      <thead>
        <th colspan='1' style="text-align:center; font-size: 20px; font-family: 'Arial'; font-weight: bold;" width="668">Full-parameter Test Report for Customer</th>
      </thead>
    </table>
    </br>
    <table id="tbl_total" border="0" cellspacing="0" height="40" cellpadding="0" style="font-size: 14px; font-family: 'Arial';">
      <tbody>
        <tr>
          <td rowspan='1' width="320">&nbsp;&nbsp;<b>PN:</b>&nbsp;<u>{{.basedata.Model | html}}</u></td>
          <td rowspan='1' width="330"><b>SN:</b>&nbsp;<u>{{.basedata.Serial | html}}</u></td>
        </tr>
        <tr>
          <td rowspan='1' width="320">&nbsp;&nbsp;<b>Tested By:</b>&nbsp;<u>{{.basedata.Operator | html}}</u></td>
          <td rowspan='1' width="330"><b>Date:</b>&nbsp;<u>{{.basedata.Date | html}}</u></td>
        </tr>
      </tbody>
    </table>
    </br>
    <div class="content-box">
    <table id="tbl_ele" border="1" cellspacing="0" cellpadding="0" style="font-size: 14px; font-family: 'Arial';">
      <thead>
        <tr>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="175" height="35">Parameter</th>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="90">Frequency(MHz)</th>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="95">Specification</th>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="110">Port</th>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="100">Test Data</th>
          <th rowspan='1' style="text-align:center; font-weight: bold;" width="60">Result</th>
        </tr>
      </thead>
      <tbody id="group_one">
        {{range .values}}
        {{$curl := .}}
        <tr>
          <td style="text-align:center">{{$curl.Parameter | html}}</td>
          <td style="text-align:center">{{$curl.Frequency | html}}</td>
          <td style="text-align:center">{{$curl.Specification | html}}</td>
          <td style="text-align:center">{{$curl.Ports | html}}</td>
          <td style="text-align:center; height: 20px;">{{$curl.Data | html}}</td>
          <td style="text-align:center">{{$curl.Result | html}}</td>
        </tr>
        {{end}}
      </tbody>
    </table>
    </div>
  </body>
  <script type="text/javascript">
    window.onload = Function(autoRowSpan(tbl_ele, 3, 0));
  </script>
</html>